<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    Promise.all([
        new Promise((resolve, reject) => {
            resolve('1')
        }),
        new Promise((resolve, reject) => {
            resolve('2')
        })
    ]).then(results => {
        console.log(results)
    })
</script>
</html>